package com.lsj.controller;

import com.lsj.core.response.CommonResult;
import com.lsj.service.AdminMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:lin.sj
 * @Data:2021/7/12 22:40
 * @Desc:
 */
@RestController
@RequestMapping("/sys_admin_menu")
@Api(tags = "后台菜单处理")
public class AdminMenuController {
    @Autowired
    AdminMenuService adminMenuService;

    @GetMapping("/getMenuTree")
    @ApiOperation(value = "获取admin菜单树")
    public CommonResult getMenuTree(){
        return CommonResult.success(adminMenuService.getMenuTree());
    }

}
